package com.ssm.web;

import com.ssm.domain.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Desc:
 * Author: manem - chenzh
 * Date: 2023/5/30 下午2:06
 */
@Controller
public class IndexController {

    @Autowired
    private IUserService userService;

    @GetMapping("/hello")
    public String hello() {

        System.out.println("查询数据");
        System.out.println(userService.findById(2L));
        return "hello";
    }
}
